import request from '@/utils/request'

// 查询当日销售管理列表
export function listDetail(query) {
  return request({
    url: '/bill/detail/list',
    method: 'get',
    params: query
  })
}

// 查询当日销售管理详细
export function getDetail(id) {
  return request({
    url: '/bill/detail/' + id,
    method: 'get'
  })
}

// 新增当日销售管理
export function addDetail(data) {
  return request({
    url: '/bill/detail',
    method: 'post',
    data: data
  })
}

// 修改当日销售管理
export function updateDetail(data) {
  return request({
    url: '/bill/detail',
    method: 'put',
    data: data
  })
}

// 删除当日销售管理
export function delDetail(id) {
  return request({
    url: '/bill/detail/' + id,
    method: 'delete'
  })
}


//入系统
export function intoSystem(id) {
  return request({
    url: '/bill/detail/intoSystem/' + id,
    method: 'put'
  })
}

//反入系统
export function outSystem(id) {
  return request({
    url: '/bill/detail/outSystem/' + id,
    method: 'put'
  })
}

//查询当前店铺下的员工
getUserInfo
export function getUserInfo() {
  return request({
    url: '/bill/detail/getUserInfo' ,
    method: 'get'
  })
}
